package com.cy.jdk8.stream.demo3;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.awt.print.Book;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Author {
	//id
	private Long id;
	// 姓名
	private String name;
	//年龄
	private Integer age;
	//简介
	private String intro;
	//作品
	private List<Book> books;
}
